<template>
  <h1>el_容器布局组件</h1>

  <div class="common-layout">
    <el-container>
      <el-aside width="200px">
        <el-menu :default-active="1" class="el-menu-demo" mode="vertical" @select="handleSelect">
          <el-menu-item index="1">用户管理</el-menu-item>
          <el-menu-item index="2">车辆管理</el-menu-item>
          <el-menu-item index="3">围栏管理</el-menu-item>
        </el-menu>
      </el-aside>
      <el-container>
        <el-header><h1 style="background-color:#0aa1ed; color: #fff">智慧车辆管理系统-IVOS</h1></el-header>
        <el-main>
          <el-table
              :data="carInfo"
              style="width: 100%">
            <el-table-column
                type="index">
            </el-table-column>
            <el-table-column
                prop="name"
                label="品牌"
                width="180">
            </el-table-column>
            <el-table-column
                prop="color"
                label="颜色">
            </el-table-column>
          </el-table>
        </el-main>
      </el-container>
    </el-container>
  </div>

</template>

<script setup>
import {ref} from "vue";

let carInfo =ref([
    {
        id:1,
        name:"car1",
        color:"red"
    },
    {
        id:2,
        name:"car2",
        color:"blue"
    },
    {
        id:3,
        name:"car3",
        color:"yellow"
    }
]);
</script>

<style scoped>

</style>